<template>
	<view class="box">
		<view class="sitebox">
			<view class="infobox">
				<image src="../../static/logo.png" mode=""></image>
				<view class="info">
					<view class="name">
						<text>糖糖</text>
						<text>15978544521</text>
					</view>
					<view class="site">
						四川成都市武侯区
					</view>
				</view>
			</view>
			<view class="angle"></view>
		</view>
		<image src="../../static/矩形2拷贝12.png" style="width: 100%;" mode="widthFix"></image>

		<view class="spbox">
			<view class="title">
				订单商品
			</view>
			<Baesorder></Baesorder>
		</view>
		<view class="bjq">
			<view class="gmsl">
				购买数量
			</view>
			<u-number-box v-model="value" @change="valChange"></u-number-box>
		</view>
		<view class="wxzf">
			<image src="../../static/logo.png" mode=""></image>
			<view class="gmsl">
				微信支付
			</view>
		</view>
		<view class="btnbox">
			<view class="leftbox">
				<text>实付款</text>
				<text class="price">￥1200</text>
			</view>
			<view class="rightbox" @click="pay">
				立即支付
			</view>
		</view>
	</view>
</template>

<script>
	import Baesorder from "../../components/Baesorder/index.vue"
	export default {
		data() {
			return {
				value: 0
			}
		},
		methods: {
			valChange(e) {
				console.log('当前值为: ' + e.value)
			},
			// 立即支付
			pay(){
				this.jumpLink({link:"/pages/finishpay/index"})
			}
		},
		components:{
			Baesorder
		}
	}
</script>

<style scoped lang="scss">
	.box {
		// background-color: #FFFFFF;
		// position: fixed;
		// top: 0;
		// bottom: 0;
		// left: 0;
		// right: 0;
		// padding-top: 100rpx;
		// box-sizing: border-box;

		.sitebox {
			padding: 35rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background-color: #FFF;

			.infobox {
				display: flex;
				align-items: center;

				image {
					width: 26rpx;
					height: 32rpx;
				}

				.info {
					margin-left: 20rpx;

					.name {
						font-family: MicrosoftYaHei;
						font-size: 28rpx;
						color: #333333;

						text {
							margin-right: 10rpx;
						}
					}

					.site {
						font-family: MicrosoftYaHei;
						font-size: 24rpx;
						color: #8d8d8d;
						margin-top: 10rpx;
					}
				}
			}

			.angle {
				width: 20rpx;
				height: 20rpx;
				border-top: 1px solid #000;
				border-left: 1px solid #000;
				transform: rotate(135deg);
			}
		}
	}

	.spbox {
		padding: 20rpx;
		box-sizing: border-box;
		background-color: #fff;

		.title {
			font-family: MicrosoftYaHei;
			font-size: 24rpx;
			color: #282828;
			line-height: 70rpx;
			border-bottom: 1rpx solid #DDDDDD;
		}
	}

	.bjq {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 30rpx 20rpx;
		box-sizing: border-box;
		background-color: #fff;
		margin-top: 20rpx;

		.gmsl {
			font-family: MicrosoftYaHei;
			font-size: 24rpx;
			color: #333333;
		}
	}

	.wxzf {
		display: flex;
		align-items: center;
		padding: 30rpx 20rpx;
		box-sizing: border-box;
		background-color: #fff;
		margin-top: 20rpx;

		image {
			width: 34rpx;
			height: 29rpx;
		}

		.gmsl {
			font-family: MicrosoftYaHei;
			font-size: 24rpx;
			color: #333333;
			margin-left: 15rpx;
		}
	}

	.btnbox {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: fixed;
		bottom: 0;
		height: 110rpx;
		width: 100%;
		background-color: #fff;

		.leftbox {
			margin-left: 25rpx;

			text {
				font-family: MicrosoftYaHei;
				font-size: 28rpx;
				color: #282828;
			}

			.price {
				margin-left: 38rpx;
				font-family: MicrosoftYaHei-Bold;
				font-size: 36rpx;
				color: #fd4f4b;
				font-weight: 700;
			}
		}

		.rightbox {
			width: 260rpx;
			height: 110rpx;
			background-image: linear-gradient(89deg,
					#fc6830 0%,
					#f6301e 100%);
			text-align: center;
			line-height: 110rpx;
			font-family: MicrosoftYaHei;
			font-size: 36rpx;
			color: #ffffff;

		}
	}
</style>
